﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MDP.WebOpenPortal.Controllers.SSO
{
    public class ClaimsIdentity : IClaimsIdentity
    {
        #region 私有变量

        #endregion

        #region 公共属性

        /// <summary>
        /// 验证类型
        /// </summary>
        public string AuthenticationType
        {
            get { return "SSO Authentication"; }
        }

        public bool IsAuthenticated
        {
            get { return true; }
        }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name
        {
            get { return this.UserName; }
        }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName
        {
            get;
            set;
        }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get;
            set;
        }

        /// <summary>
        /// 域名称
        /// </summary>
        public string Domain
        {
            get;
            set;
        }
        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime LogonTime
        {
            get;
            set;
        }

        /// <summary>
        /// 密码剩余过期天数
        /// 密码永不过期: -1
        /// 密码已经过期:  0
        /// 否则: 实际剩余天数
        /// </summary>
        public int PasswordExpireDays
        {
            get;
            set;
        }
        #endregion


        public ClaimsIdentity()
        {
        }
    }
}